Conversation
- Making all of the replacements will be pretty disruptive - Just adding now for feedback in review
Will replace with something like `EagerExprNamespace` later
DIscovered a 🐛 for `IntoSeriesT`
Look at all the *now* unused ignores!!!!
CompliantSeriesCompliantSeries
Can do that in a later PR
| @property | ||
| def str(self) -> Any: ... | ||
| @property | ||
| def dt(self) -> Any: ... | ||
| @property | ||
| def cat(self) -> Any: ... | ||
| @property | ||
| def list(self) -> Any: ... | ||
| @property | ||
| def struct(self) -> Any: ... |
There was a problem hiding this comment.
I wanna do these properly in a follow-up
Will be similar to EagerExprNamespace
narwhals/narwhals/_compliant/expr.py
Lines 850 to 852 in a6361cd
| raise AssertionError(msg) | ||
|
|
||
| def to_polars(self: Self) -> pl.DataFrame: | ||
| def to_polars(self: Self) -> pl.Series: |
There was a problem hiding this comment.
Discovering this one really was a surprise 😄
|
thanks, can you fix the conflicts please? |
Sure thing @MarcoGorelli, won't be long |
| def quantile( | ||
| self, | ||
| quantile: float, | ||
| interpolation: Literal["nearest", "higher", "lower", "midpoint", "linear"], |
There was a problem hiding this comment.
We should probably look into defining aliases for all of these Literal[...](s).
Or at least repeating the most common ones from polars
|
Thanks @EdAbati, @MarcoGorelli
That is really useful feedback @EdAbati and echoes a similar comment (#2232 (comment)) from @FBruzzesi I should probably organize a lot of the breadcrumbs (#2230) has put down into more of a narrative. Big apologies for the visibility gap on this! |
@dangotbanned can you prepare a workshop/masterclass/livestream to get us to speed 😂? (Joking, but I would actually love that)
No need to apologize. Personally, I just had way less spare time in the last 3-4 weeks and chose to focus on some other features 🙈 |
|
Same here, no need to apologise. It's my fault. I'm also only contributing in my spare time and this varies week by week 😅😅 I actually like a lot your PR comments and descriptions! They make navigating through past PRs and issues easier 🙂 |

What type of PR is this? (check all applicable)
Related issues
Compliant*protocols #2230TypeVar(s) used innw.(BaseFrame|Series)are recursive #2239Checklist
If you have comments or can explain your changes, please do so below